using System;
using System.Xml;

namespace InfoJetSoft.Service.Util
{
	/// <summary>
	/// Summary description for EmptyXmlnsFormater.
	/// </summary>
	public class EmptyXmlnsFormater
	{

		public static void formatEmptyXmlns( XmlElement element )
		{
			if( element.NamespaceURI != null && element.NamespaceURI.Equals( "" ) && element.Prefix != null && element.Prefix.Equals( "" ) )
			{
				element.SetAttribute( "xmlns", "" );
			}
		}

	}
}
